package com.boot.entity;


import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 专业表
 */

@Data
@Entity
@Table(name = "major")
public class Major implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @Column(name = "major_id")
    private Integer majorId; //专业编号
    @Column(name = "major_name")
    private String majorName; //专业名称
    @Column(name = "school_id")
    private Integer schoolId; //院系编号
    @Column(name="major_tea_num")
    private Integer teaNum; //专业老師人数
    @Column(name="major_stu_name")
    private Integer stuNum; //专业学生人数


}
